<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">

<tc_include file="Public:head" />
</head>

<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
                                   <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-comments-o"></i>公众号任务列表</a></li>
                               </ul>
                               <div class="tab-content">
                                   <div class="tab-pane active" id="one">
                                   		
                                   		<table class="table table-bordered table-striped table-hover">
									    <thead>
									      <tr>
									       	 <th>#</th>
									       	  <if condition="$types eq 1">
									        <th>公众号</th>
									        <elseif condition="$types eq 2"/>
									        <th>朋友圈</th>
									        </if>
									       
									        <th>标题</th>
									        <th>订单价格</th>
									        <th>开始时间</th>
									        <th>订单状态</th>
									        <th>完成数据</th>
									        <th>操作</th>
									       
									       
									      </tr>
									    </thead>
									    <tbody>
									  	<volist name="data" id="vo">
									  	<tr>
									  		<td>{$vo.id}</td>
									  		 <if condition="$types eq 1">
									       <td>{$vo.userpub.pwc_name}</td>
									        <elseif condition="$types eq 2"/>
									        <td>{$vo.userpub.nickname}</td>
									        </if>
									  		
									  		<td>{$vo.title}</td>
									  		 <if condition="$types eq 1">
									  		<td>
									  			<if condition="$vo[loction] eq 1">
									  				{$vo.userpub.price_d}
									  			<elseif condition="$vo[loction] eq 2" />
									  				{$vo.userpub.price_f}
									  			<elseif condition="$vo[loction] eq 3" />
									  				{$vo.userpub.price_s}
									  			<elseif condition="$vo[loction] eq 4" />
									  				{$vo.userpub.price_o}
									  			</if>
									  			
									  		</td>
									  		<elseif condition="$types eq 2"/>
									  		 <td> {$vo.userpub.price}</td>
									  		</if>
									  		
									  		<td>{$vo.starttime}</td>
									  		<td>
									  			<if condition="$vo.status eq 1">
									  				任务进行中
									  			<elseif condition="$vo.status eq 2 "/>
									  				任务已结束
									  			<elseif condition="$vo.status eq 3 "/>
									  				任务已取消	
									  			</if>
									  		
									  		</td>
									  		<td>
									  			<if condition="$vo.state eq 2"></if>
									  		</td>
									  		<td>
									  			<a href="{:U('user/task/taskinfo',array('tid'=>$vo['tid']))}">查看详情</a> 
									  			<if condition="$vo.state eq 0">
									  			<a href="{:U('user/task/agree',array('id'=>$vo[id]))}">接单</a>  
									  	    	<a href="{:U('user/task/reject',array('id'=>$vo[id]))}">拒单</a>
									  	    	<elseif condition="$vo.state eq 1"/>
									  	    		<a href="{:U('user/task/makeover',array('tid'=>$vo['tid'],'id'=>$vo['id']))}">交任务</a>
									  	    	<elseif condition="$vo.state eq 2"/>
									  	    	  	已完成
									  	    	<elseif condition="$vo.state eq 3"/>
									  	    		已拒单
									  	    	</if>
									  	    </td>
									  		
									  	</tr>
									   </volist>
									  
									   
									   
									    </tbody>
									  </table>
                                   		

                                   		
                                   </div>
                                   
                                   <div class="pager">{$pager}</div>
                               </div>							
                           </div>
                    </div>
                </div>

		<tc_include file="Public:footer" />

	</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
</body>
</html>